const fs = require("fs");
const readMd = (path) => {
	return new Promise((resolve, reject) => {
		fs.readFile(path, (err, data) => {
			if (err) reject(err);
			resolve(data);
		})
	})
}

async function main() {
	let weixue = await readMd("./resource/为学.md");
	let nanjing = await readMd("./resource/人民解放军占领南京.md");
	let yougan = await readMd("./resource/观书有感.md");
	return {weixue: weixue.toString(), nanjing: nanjing.toString(), yougan: yougan.toString()}
}

main().then(res => {
	console.log(res)
});
